﻿@using Volo.Abp.UI.Navigation
@model ApplicationMenuItem
@{
    var elementId = string.IsNullOrEmpty(Model.ElementId) ? string.Empty : $"id=\"{Model.ElementId}\"";
    var cssClass = string.IsNullOrEmpty(Model.CssClass) ? string.Empty : Model.CssClass;
    var disabled = Model.IsDisabled ? "disabled" : string.Empty;
}
@if (Model.IsLeaf)
{
    <dd class="@cssClass @disabled" id="Menu_@(Model.Name)" @Html.Raw(elementId)>
        <a href="javascript:;" address="@(Model.Url ?? "")">
            @if (!Model.Icon.IsNullOrWhiteSpace())
            {
                <img src="@Model.Icon" class="layui-nav-img">
            }
            <cite>@Model.DisplayName</cite>
        </a>
    </dd>
}